package cn.lili.controller.feign;

import cn.lili.modules.promotion.client.SeckillStatisticsClient;
import cn.lili.modules.promotion.service.SeckillStatisticsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author paulG
 * @since 2022/6/28
 **/
@RestController
@RequiredArgsConstructor
public class SeckillStatisticsFeignController implements SeckillStatisticsClient {

    private final SeckillStatisticsService seckillStatisticsService;

    @Override
    public long getApplyNum() {
        return seckillStatisticsService.getApplyNum();
    }
}
